define(["extensions/validations/data-types", "jquery"], function (extension, $) { "use strict"; var DataTypes = { Alphanumeric: "[a-zA-Z0-9]*", AlphanumericDot: "[a-zA-Z0-9\.]*", AlphanumericWithAlphaStart: "^[a-zA-Z][a-zA-Z0-9]{7,7}$", AlphanumericWithSpace: "[a-zA-Z0-9 ]*", Numbers: "[0-9]*", NumbersIdCard: "^[0-9]{9,12}$", Decimals: "^[0-9]*\.[0-9]+$", Alphabets: "[a-zA-Z]*", AlphabetsWithSpace: "[a-zA-Z ]*", AlphabetsWithSomeSpecial: "[a-zA-Z\-']*", LowerAlphabets: "[a-z]*", UpperAlphabets: "[A-Z]*", LowerAlphabetsWithSpace: "[a-z ]*", UpperAlphabetsWithSpace: "[A-Z ]*", AlphanumericWithSpecial: "[a-zA-Z0-9 \%\&\:\,\)\(\.\_'\-\//;]*", AlphanumericWithSomeSpecial: "[a-zA-Z0-9 \&\:\$\,\.\_]*", AlphanumericWithSomeSpecialChar: "[a-zA-Z0-9\- \&\:\,\.\-\/\(\)]*", SWIFT: "[a-zA-Z0-9\- \+\:,\)\(\.'\?\/]*", AlphanumericWithAllSpecial: "[a-zA-Z0-9\- \=\&\#\*\+\:,\)\(\.\!\$_\|'\`\?\[\\\]\/]*", SpaceWithAllSpecial: "[!\"\#\$\%\&'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~\ ]*", Email: "^(([^<>()[\\]\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\.,;:\\s@\\\"]+)*)|(\".+\"))@(([^<>()[\\]\\.,;:\\s@\"]+\\.)+[^<>()[\\]\\.,;:\\s@\"]{2,})$", FreeText: ".*", Url: "^((http|https?):\/\/)?([w|W]{3}\.)+[a-zA-Z0-9\-\.]{2,}\.[a-zA-Z]{2,}(\.[a-zA-Z]{2,})?$", IpAddress: "^([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\.([01]?\\d\\d?|2[0-4]\\d|25[0-5])$", SCB_InterestRate: "^[0-9]{1}(\.[0-9]{1,3})?$|^[0-9]{1,2}(\.[0-9]{1,2})?$|^[0-9]{1,3}(\.[0-9]{1})?$|^\d{4}?$" }; return $.extend(true, DataTypes, extension); });